package com.dks.util;

import java.util.List;

/**
 * @Author: Ah Nan
 * @Description:
 * @Date: Create in 16:12 2018/7/9
 * @Modificd By:
 */
public class PageInfo<T> {


    private int pageNum;//当前页

    private int pageSize;//每页条数

    private long total;//总条数

    private int pages;//总页数

    private List<T> data;//数据

    public PageInfo(int pageNum, int pageSize, long total, int pages, List<T> data) {
        this.pageNum = pageNum;
        this.pageSize = pageSize;
        this.total = total;
        this.pages = pages;
        this.data = data;
    }

    public PageInfo() {
    }

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public int getPages() {
        return pages;
    }

    public void setPages(int pages) {
        this.pages = pages;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }
}
